package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteGuideMapper;
import com.hckjsec.website.domain.WebSiteGuide;
import com.hckjsec.website.service.IWebSiteGuideService;

/**
 * 办证指南Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteGuideServiceImpl implements IWebSiteGuideService 
{
    @Autowired
    private WebSiteGuideMapper webSiteGuideMapper;

    /**
     * 查询办证指南
     * 
     * @param id 办证指南ID
     * @return 办证指南
     */
    @Override
    public WebSiteGuide selectWebSiteGuideById(Long id)
    {
        return webSiteGuideMapper.selectWebSiteGuideById(id);
    }

    /**
     * 查询办证指南列表
     * 
     * @param webSiteGuide 办证指南
     * @return 办证指南
     */
    @Override
    public List<WebSiteGuide> selectWebSiteGuideList(WebSiteGuide webSiteGuide)
    {
        return webSiteGuideMapper.selectWebSiteGuideList(webSiteGuide);
    }

    /**
     * 新增办证指南
     * 
     * @param webSiteGuide 办证指南
     * @return 结果
     */
    @Override
    public int insertWebSiteGuide(WebSiteGuide webSiteGuide)
    {
        return webSiteGuideMapper.insertWebSiteGuide(webSiteGuide);
    }

    /**
     * 修改办证指南
     * 
     * @param webSiteGuide 办证指南
     * @return 结果
     */
    @Override
    public int updateWebSiteGuide(WebSiteGuide webSiteGuide)
    {
        return webSiteGuideMapper.updateWebSiteGuide(webSiteGuide);
    }

    /**
     * 批量删除办证指南
     * 
     * @param ids 需要删除的办证指南ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteGuideByIds(Long[] ids)
    {
        return webSiteGuideMapper.deleteWebSiteGuideByIds(ids);
    }

    /**
     * 删除办证指南信息
     * 
     * @param id 办证指南ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteGuideById(Long id)
    {
        return webSiteGuideMapper.deleteWebSiteGuideById(id);
    }
}
